<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1    
	response.setHeader("Pragma", "no-cache"); //HTTP 1.0    
	response.setDateHeader("Expires", 0); //prevents caching at the proxy server   

	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>问健康后台系统</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color:#525252;
}
-->
</style>
<link href="<%=path%>/css/backoffice/css.css" rel="stylesheet"
	type="text/css" />
</head>
<SCRIPT language=JavaScript>
function tupian(idt){
    var nametu="xiaotu"+idt;
    var tp = document.getElementById(nametu);
    tp.src="<%=path%>/images/ico05.gif";//图片ico04为白色的正方形
	
	for(var i=1;i<30;i++)
	{
	  
	  var nametu2="xiaotu"+i;
	  if(i!=idt*1)
	  {
	    var tp2=document.getElementById('xiaotu'+i);
		if(tp2!=undefined)
	    {tp2.src="<%=path%>/images/ico06.gif";}//图片ico06为蓝色的正方形
	  }
	}
}


	function list(idstr) {
		var name1 = "subtree" + idstr;
		var name2 = "img" + idstr;
		var objectobj = document.getElementById(name1);
		var imgobj = document.getElementById(name2);

		//alert(imgobj);

		if (objectobj.style.display == "none") {
			for (i = 1; i < 20; i++) {
				var name3 = "img" + i;
				var name = "subtree" + i;
				var o = document.getElementById(name);
				if (o != undefined) {
					o.style.display = "none";
					var image = document.getElementById(name3);
					//alert(image);
					image.src = "<%=path%>/images/ico04.gif";
			}
		}
		objectobj.style.display="";
		imgobj.src="<%=path%>/images/ico03.gif";
	}
	else{
		objectobj.style.display="none";
		imgobj.src="<%=path%>/images/ico04.gif";
		}
	}
</SCRIPT>
<body>
<div class="left-box">
	<div class="left-boxa-02"><img src="<%=path%>/images/ico02.gif" width="35" height="35" /></div>
  <div class="left-boxa-01">
    <div class="left-boxa-03">您好，<span class="left-font02">${sessionScope.LOGIN_USER.username}</span></div>
    <div class="left-boxa-04">[&nbsp;<a href="<%=path%>/user/logout.do" target="_top" class="left-font01">退出</a>&nbsp;]</div>
  </div>
  
  <s:if test="#request.session.LOGIN_USER.role == 'a'.toString()">
	
	<div class="left-boxb"><img name="img8" id="img1" src="<%=path%>/images/ico04.gif" width="8" height="11" /><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('1');">电台管理</a></div>
   <table id="subtree1" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
		<tr>
			<td width="9%" height="20"><img id="xiaotu11" src="<%=path%>/images/ico06.gif" width="8" height="12" />
			</td>
			<td width="91%"><a href="<%=path %>/backoffice/transmitter/addTransmitter.do" target="mainFrame" class="left-font03" onClick="tupian('11');">新增电台</a>
			</td>
		</tr>
		<tr>
			<td width="9%" height="20"><img id="xiaotu10" src="<%=path%>/images/ico06.gif" width="8" height="12" />
			</td>
			<td width="91%"><a href="<%=path %>/backoffice/transmitter/listTransmitter.do" target="mainFrame" class="left-font03" onClick="tupian('10');">电台列表</a>
			</td>
		</tr>
	</table>
  </s:if>
  
</body>
</html>
